package com.flexcodejam.vfd.event
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.flexcodejam.vfd.vo.*;

	import flash.events.Event;
	import com.flexcodejam.vfd.vo.Donation;

	public class DonationEvent extends CairngormEvent {
	{
		public static var MakeDonation:String = "MakeDonationEvent";
		public static var GetDonationByUserId:String = "GetDonationByUserIdEvent";
		public static var GetDonationByFoodDriveId:String = "GetDonationByFoodDriveIdEvent";
		
		public var donation:Donation;
		
		public var user:User;
		
		public var foodDrive:FoodDrive;
		
	
/**
		 * Constructor.
		 */
		public function DonationEvent(type:String,bubbles:Boolean=true,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
		}	
     	
     	/**
     	 * Override the inherited clone() method, but don't return any state.
     	 */
		override public function clone() : Event
		{
			var e:DonationEvent = new DonationEvent(type,bubbles,cancelable);
			e.donation = this.donation;
			e.user = this.user;
			e.foodDrive = this.foodDrive;
			return e;
		}	
	}
}
}